-- GENERATED SPELL FOR [Lunar Festival Sentinel] --


function spell0_15961(pUnit, Event) --@Incapacitating Shout,Self--
pUnit:FullCastSpellOnTarget(18328,pUnit)
pUnit:RegisterEvent('Sorts_15961', 8328, 1)
end

function spell1_15961(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15961', 5335, 1)
end

function spell2_15961(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15961', 2280, 1)
end

function Sorts_15961(pUnit, Event)
local choix_sorts_15961 = math.random(0, 2)
if choix_sorts_15961 == 0 then
pUnit:RegisterEvent('spell0_15961', 1, 1)
end
if choix_sorts_15961 == 1 then
pUnit:RegisterEvent('spell1_15961', 1, 1)
end
if choix_sorts_15961 == 2 then
pUnit:RegisterEvent('spell2_15961', 1, 1)
end
end

function mob15961_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15961', math.random(1500, 3000), 1)
end

function mob15961_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15961_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15961_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15961, 1, 'mob15961_Action')
RegisterUnitEvent(15961, 2, 'mob15961_Leave')
RegisterUnitEvent(15961, 3, 'mob15961_Kill')
RegisterUnitEvent(15961, 4, 'mob15961_Die')
